package com.qf.serivce.Impl;
import com.qf.mapper.CityDao;
import com.qf.pojo.City;
import com.qf.serivce.CityService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityDao cityDao;

    @Override
    public List<City> findCityByPid(@Param("pid") Integer pid) {
        return cityDao.findCityByPid(pid);
    }

    @Override
    public City GbCity(Integer id) {
        return cityDao.findCityById(id);
    }

   /* @Override
    public City selectId(Integer getid ,Integer backid) {
        City city = cityDao.selectId(getid);
        List<City> cityList = new ArrayList<City>();
        return null;
    }*/
}
